package com.pentalog.training.soap.webservice;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pentalog.training.soap.spring.HelloWorldService;

@WebService(serviceName="HelloWorldWSService", endpointInterface="com.pentalog.training.soap.webservice.HelloWorldWS")
//@SOAPBinding(style=Style.RPC)
@Service("helloWorldWS")
public class HelloWorldWSImpl implements HelloWorldWS{
	
		@Autowired
		HelloWorldService helloWorldService;
 
		@Override
		@WebMethod(operationName="getHelloMessage")
		public String getHelloMessage() {
			return helloWorldService.getHelloMessage();
	 
		}
		
		@Override
		@WebMethod(operationName="getSayHello")
		public String getSayHello(String name) {
			return helloWorldService.getSayHello(name);
	 
		}

}
